//app.js
App({
  onLaunch: function () {
    console.log('onLaunch');
  },
  onShow: function () {
    console.log('onShow');
  },
  onHide: function () {
    console.log('onHide');
  },
  globalData: {
    userInfo: null
  }
})